package com.dy.course.common;

public class Constant {

	public static final Long DEFAULT_COURSE_PIC_ID = 1L;
	
	public static final int KEY_EXPIRE_TIME = 1000;
	
	public static class CacheKey{
		public static final String COURSE_NUM_TIME = "course_num_time";
		public static final String COURSE_MAX_NUM = "course_max_num";
	}
	

	public static final class Code {
		
		public static final String SUCCESS  = "0000"; 
		public static final String SERVER_ERROR  = "9999"; 
		public static final String VALIDATE_ERROR  = "8888"; 
		public static final String AUTHENTICATION_ERROR  = "7777"; 
		public static final String INSERT_ERROR = "6666";
		public static final String SELECT_ERROR = "6676";
		public static final String DELETE_ERROR = "6677";
		public static final String UPDATE_ERROR = "6678";
		
		public static final String USER_PHONE_REPEAT = "";
		public static final String USER_NOT_EXIST = "1010";
		
		
		public static final String BAD_PARAMETER = "1001";
		public static final String ALREADY_SIGN = "1003";
		public static final String NOT_JOIN = "1004";
		public static final String MCK_ALREADY_SIGN = "1008";
		public static final String USER_PHONE_EXISTS = "1009";
		public static final String USER_WORK_NO_EXISTS = "1010";
		public static final String ROOM_EXISTS = "1011";
		public static final String USER_NAME_OR_PASSWORD_NOT_CORRENT = "1014";
		public static final String COURSE_NOT_JOIN = "1015";
		public static final String COURSE_STATUS_ERROR = "1016";
		
	}

}
